screenWidth, screenHeight = screenSize = 80, 25
levelWidth, levelHeight = levelSize = 60,25

stdBorderForeground, stdBorderBackground = (0x59,0x26,0x00), (0x59,0x26,0x00)
stdForeground, stdBackground = (0,0,0), (0x99,0x66,0x00)

stdDeviceColour = (255,255,0)

stdCartBackground = (0x88, 0x55, 0x33)

almostInfinity = 2**31

pcCarryingCapacity = 10000

handheldBulkLimit = 300

universalSprocketWeight = 1

gameVersion = (1,1, "%dx%d" % (levelWidth,levelHeight), "7drl" )

maxNameLength = 20

standardTraversibility = [ "land", "open-door" ]

serializableClasses = []
serializablePointers = {}

plentyMultiplier = 1 # a cheat code to have this != 1
wrenchAwesomenessMultiplier = 1 # 
cheatImmortality = False
cheatReveal = False
cheatWinButton = False

SlotNames = "abcdefghilmopqrstuvwxyzABCDEFGHILMNOPQRSTUVWXYZ"
	# notice no vertical vi keys

def supportsSerialization( cp ):
	if not cp in serializableClasses:
		serializableClasses.append( cp )

def isAllowedPointer( cp, name = None):
	if not name:
		name = cp.__name__
	serializablePointers[name] = cp

class PlayerQuit:
	pass

class PlayerWon:
	pass

class PlayerDead:
	def __init__(self, deathInfo = None):
		self.deathInfo = deathInfo

class NoMoreSlots: pass
